﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.InsertLocationInsideSeam.CCUiInsertLocationDlg
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.PrivateImplementationDetails;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.InsertLocationInsideSeam;

public class CCUiInsertLocationDlg : TxForm
{
  private const int NCHITTEST = 132;
  private const int HTTOP = 12;
  private const int HTTOPLEFT = 13;
  private const int HTTOPRIGHT = 14;
  private const int HTBOTTOM = 15;
  private const int HTBOTTOMLEFT = 16 /*0x10*/;
  private const int HTBOTTOMRIGHT = 17;
  private const int HTBORDER = 18;
  private const string REGISTRY_COPY_PARAMETERS = "Copy_Parameters";
  private const string REGISTRY_USE_REFERENCE_LOCATION_POSITION = "Use_Reference_Location_Position";
  private const string DISTANCE_FROM_RELATIVE_LOCATION = "distance";
  private const string SEQUENCE_NEW_LOCATION = "Sequence_New_Location";
  private const string POSITION_LOCATION = "Position_Location";
  private const string PERCENTAGE_POSITION = "Percentage_Position";
  private const int DEFAUTL_PERCENTAGE_POSTION = 50;
  private CApIlisUIDirector _dialogDirector;
  private CCoIlisInsertLocationInsideSeamCmd _command;
  private IContainer components;
  private Button _okButton;
  private Button _cancelButton;
  private Label label5;
  private Label label1;
  private RadioButton _afterRadioButton;
  private Label label3;
  private RadioButton _beforeRadioButton;
  private Label label4;
  private TxObjEditBoxCtrl _relativeLocationObjEditBoxCtrl;
  private Tx3DVectorCtrl _translate3DVectorCtrl1;
  private GroupBox groupBox1;
  private GroupBox groupBox2;
  private TxCheckBox cbHidePath;
  private ImageList ilButtonsImages;
  private ToolTip ttGeneralTooltip;
  private RadioButton rbAutomatic;
  private TxButton btnJumpToLast;
  private TxButton btnJumpToFirst;
  private Button _applyButton;
  private TxButton btnJumpToNext;
  private TxButton btnJumpToPrevious;
  private ComboBox _copyParametersComboBoxCtrl;
  private Label label2;
  private TxNumericEditBoxCtrl _precentageTxNumericEditBoxCtrl;
  private Label label7;
  private TxNumericEditBoxCtrl _distanceTxNumericUpDown;
  private Label _distanceLabel;
  private RadioButton _distanceRadioButton;
  private RadioButton _pickOnCurveRadioButton;
  private RadioButton _percentageRadioButton;
  private CheckBox _useRefLocationPositionCheckBox;

  public CApIlisCopyUtils.CopyParametersOptions CopyParameters
  {
    get => this._dialogDirector.CopyParameters;
    set => this._dialogDirector.CopyParameters = value;
  }

  public CCUiInsertLocationDlg(CCoIlisInsertLocationInsideSeamCmd command)
  {
    this._command = command;
    this.InitializeComponent();
    this.LoadStorageData();
    this._dialogDirector = new CApIlisUIDirector(this);
    this._dialogDirector.SetPickProviders();
    this._distanceLabel.Text = TxApplication.Options.Units.LinearUnitName;
    this.ttGeneralTooltip.SetToolTip((Control) this.cbHidePath, StringTable.HIDE_PATH);
    this.SetLocationNavigationButtonsState();
    this.btnJumpToFirst.SetImage(TxImageManager.GetImageByKey("PlayBackwardToOperationStart"), new Size());
    this.btnJumpToPrevious.SetImage(TxImageManager.GetImageByKey("PlayBackward"), new Size());
    this.btnJumpToNext.SetImage(TxImageManager.GetImageByKey("PlayForward"), new Size());
    this.btnJumpToLast.SetImage(TxImageManager.GetImageByKey("PlayForwardToOperationStart"), new Size());
    this.cbHidePath.SetImage(TxImageManager.GetImageByKey("HideShowPath"), new Size());
  }

  public GroupBox PositionGroupBox => this.groupBox2;

  public RadioButton BeforeRadioButton => this._beforeRadioButton;

  public RadioButton AfterRadioButton => this._afterRadioButton;

  public RadioButton AutomaticRadioButton => this.rbAutomatic;

  public TxObjEditBoxCtrl RelativeLocationObjEditBoxCtrl => this._relativeLocationObjEditBoxCtrl;

  public RadioButton PickOnCurveRadioButton => this._pickOnCurveRadioButton;

  public RadioButton DistanceRadioButton => this._distanceRadioButton;

  public RadioButton PercentageRadioButton => this._percentageRadioButton;

  public TxNumericEditBoxCtrl DistanceTxNumericEditBoxCtrl => this._distanceTxNumericUpDown;

  public TxNumericEditBoxCtrl PercentageTxNumericEditBoxCtrl
  {
    get => this._precentageTxNumericEditBoxCtrl;
  }

  public Tx3DVectorCtrl Translate3DVectorCtrl1 => this._translate3DVectorCtrl1;

  public Button OkButton => this._okButton;

  public Button ApplyButton => this._applyButton;

  public Button CancelButton => this._cancelButton;

  public CheckBox UseReferenceLocationPositionCheckBox => this._useRefLocationPositionCheckBox;

  protected virtual void WndProc(ref Message message)
  {
    base.WndProc(ref message);
    if (message.Msg != 132)
      return;
    switch (message.Result.ToInt32())
    {
      case 12:
      case 13:
      case 14:
      case 15:
      case 16 /*0x10*/:
      case 17:
        message.Result = new IntPtr(18);
        break;
    }
  }

  private void LoadStorageData()
  {
    try
    {
      TxCommandPrivateDataStorage privateDataStorage = new TxCommandPrivateDataStorage((ITxCommand) this._command);
      string stringValue = privateDataStorage.GetStringValue("distance");
      double result = 5.0;
      if (double.TryParse(stringValue, out result))
        this._distanceTxNumericUpDown.Value = result;
      this._afterRadioButton.Checked = true;
      switch (privateDataStorage.GetIntValue("Sequence_New_Location"))
      {
        case 1:
          this._beforeRadioButton.Checked = true;
          break;
        case 2:
          this._afterRadioButton.Checked = true;
          break;
        case 3:
          this.rbAutomatic.Checked = true;
          break;
      }
      this._distanceRadioButton.Checked = true;
      switch (privateDataStorage.GetIntValue("Position_Location"))
      {
        case 1:
          this._pickOnCurveRadioButton.Checked = true;
          break;
        case 2:
          this._distanceRadioButton.Checked = true;
          break;
        case 3:
          this._percentageRadioButton.Checked = true;
          break;
      }
      this._precentageTxNumericEditBoxCtrl.Value = 50.0;
      if (!double.TryParse(privateDataStorage.GetStringValue("Percentage_Position"), out result))
        return;
      this._precentageTxNumericEditBoxCtrl.Value = result;
    }
    catch
    {
    }
  }

  private void SaveStorageData()
  {
    try
    {
      TxCommandPrivateDataStorage privateDataStorage = new TxCommandPrivateDataStorage((ITxCommand) this._command);
      privateDataStorage.SetStringValue("distance", Convert.ToString(this._distanceTxNumericUpDown.Value));
      if (this._afterRadioButton.Checked)
        privateDataStorage.SetIntValue("Sequence_New_Location", 2);
      if (this._beforeRadioButton.Checked)
        privateDataStorage.SetIntValue("Sequence_New_Location", 1);
      if (this.rbAutomatic.Checked)
        privateDataStorage.SetIntValue("Sequence_New_Location", 3);
      if (this._pickOnCurveRadioButton.Checked)
        privateDataStorage.SetIntValue("Position_Location", 1);
      if (this._distanceRadioButton.Checked)
        privateDataStorage.SetIntValue("Position_Location", 2);
      if (this._percentageRadioButton.Checked)
        privateDataStorage.SetIntValue("Position_Location", 3);
      privateDataStorage.SetStringValue("Percentage_Position", Convert.ToString(this._precentageTxNumericEditBoxCtrl.Value));
    }
    catch
    {
    }
  }

  private void CCUiInsertLocationDlg_Load(object sender, EventArgs e)
  {
    this._precentageTxNumericEditBoxCtrl.ValueType = (TxNumericEditValueType) 0;
    this._dialogDirector.LoadDialog();
    this.SetLocationNavigationButtonsState();
    this._dialogDirector.OnSeamLocationChanged(true);
    this.InitCopyParamatersList();
    this.RestoreRegistrySettings();
  }

  private void CCUiInsertLocationDlg_FormClosing(object sender, FormClosingEventArgs e)
  {
    this._cancelButton.Focus();
    this.SaveStorageData();
    this._dialogDirector.DialogClosing();
  }

  private void InitCopyParamatersList()
  {
    this._copyParametersComboBoxCtrl.DataSource = (object) new List<object>()
    {
      (object) new
      {
        Value = CApIlisCopyUtils.CopyParametersOptions.None,
        Description = StringTable.CopyParametersNoneString
      },
      (object) new
      {
        Value = CApIlisCopyUtils.CopyParametersOptions.Robotic,
        Description = StringTable.CopyParametersRoboticString
      },
      (object) new
      {
        Value = CApIlisCopyUtils.CopyParametersOptions.RoboticAndOLP,
        Description = StringTable.CopyParametersRoboticWithOLPString
      }
    };
    this._copyParametersComboBoxCtrl.DisplayMember = "Description";
    this._copyParametersComboBoxCtrl.ValueMember = "Value";
  }

  private void _okButton_Click(object sender, EventArgs e)
  {
    TxApplication.ActiveUndoManager.StartTransaction();
    this.CopyParameters = (CApIlisCopyUtils.CopyParametersOptions) this._copyParametersComboBoxCtrl.SelectedValue;
    if (this._dialogDirector.OkClicked())
    {
      this.StoreRegistrySettings();
      ((Form) this).Close();
    }
    TxApplication.ActiveUndoManager.EndTransaction();
  }

  private void _applyButton_Click(object sender, MouseEventArgs e)
  {
    TxApplication.ActiveUndoManager.StartTransaction();
    this.CopyParameters = (CApIlisCopyUtils.CopyParametersOptions) this._copyParametersComboBoxCtrl.SelectedValue;
    this._dialogDirector.OkClicked();
    this.StoreRegistrySettings();
    TxApplication.RefreshDisplay();
    ((Control) this._relativeLocationObjEditBoxCtrl).Text = "";
    this._relativeLocationObjEditBoxCtrl.Object = (ITxObject) null;
    this._relativeLocationObjEditBoxCtrl.Focus();
    this.OkButton.Enabled = false;
    this.ApplyButton.Enabled = false;
    this.SetLocationNavigationButtonsState();
    TxApplication.ActiveUndoManager.EndTransaction();
  }

  private void _cancelButton_Click(object sender, EventArgs e) => ((Form) this).Close();

  private void _relativeLocationObjEditBoxCtrl_TypeValid(object sender, EventArgs e)
  {
    this._dialogDirector.TypedValid();
    this.SetLocationNavigationButtonsState();
  }

  private void _relativeLocationObjEditBoxCtrl_TypeInvalid(object sender, EventArgs e)
  {
    this._dialogDirector.TypedInvalid();
    this.SetLocationNavigationButtonsState();
  }

  private void _relativeLocationObjEditBoxCtrl_Picked(
    object sender,
    TxObjEditBoxCtrl_PickedEventArgs args)
  {
    this._dialogDirector.TypedValid();
    this.SetLocationNavigationButtonsState();
  }

  private void _relativeLocationObjEditBoxCtrl_Enter(object sender, EventArgs e)
  {
    this._dialogDirector.UnsubscribeForPickListener();
  }

  private void _beforeRadioButton_Click(object sender, EventArgs e)
  {
    if (!this._beforeRadioButton.Checked || !this._percentageRadioButton.Checked && !this._distanceRadioButton.Checked)
      return;
    this._dialogDirector.SetAddNewLocationState(false);
    this._relativeLocationObjEditBoxCtrl.Focus();
  }

  private void _afterRadioButton_Click(object sender, EventArgs e)
  {
    if (!this._afterRadioButton.Checked || !this._percentageRadioButton.Checked && !this._distanceRadioButton.Checked)
      return;
    this._dialogDirector.SetAddNewLocationState(true);
    this._relativeLocationObjEditBoxCtrl.Focus();
  }

  private void rbAutomatic_Click(object sender, EventArgs e)
  {
    if (!this.rbAutomatic.Checked)
      return;
    if (this._percentageRadioButton.Checked || this._distanceRadioButton.Checked)
    {
      this._dialogDirector.SetBetween2LocationsMode();
      this._relativeLocationObjEditBoxCtrl.Focus();
    }
    else
      this._dialogDirector.SetPickMode();
  }

  private void _pickOnCurveRadioButton_Click(object sender, EventArgs e)
  {
    if (!this._pickOnCurveRadioButton.Checked)
      return;
    this._dialogDirector.SetPickMode();
  }

  private void StoreRegistrySettings()
  {
    TxFormSettings.StoreFormValue((Form) this, "Copy_Parameters", (object) (int) this.CopyParameters);
    TxFormSettings.StoreFormValue((Form) this, "Use_Reference_Location_Position", (object) this.UseReferenceLocationPositionCheckBox.Checked);
  }

  private void RestoreRegistrySettings()
  {
    object obj1;
    TxFormSettings.RestoreFormValue((Form) this, "Copy_Parameters", ref obj1);
    if (obj1 != null)
      this._copyParametersComboBoxCtrl.SelectedIndex = (int) obj1;
    object obj2;
    TxFormSettings.RestoreFormValue((Form) this, "Use_Reference_Location_Position", ref obj2);
    if (obj2 == null)
      return;
    this.UseReferenceLocationPositionCheckBox.Checked = bool.Parse(obj2 as string);
  }

  private void _percentageRadioButton_Click(object sender, EventArgs e)
  {
    if (!this._percentageRadioButton.Checked)
      return;
    this._dialogDirector.SetBetween2LocationsMode();
  }

  private void _precentageTxNumericEditBoxCtrl_ValueChanged(object sender, EventArgs e)
  {
    this._dialogDirector.SetPercentageOrDistance();
  }

  private void cbHidePath_CheckedChanged(object sender, EventArgs e)
  {
    if (((CheckBox) this.cbHidePath).Checked)
    {
      this._dialogDirector.HidePath();
      this.ttGeneralTooltip.SetToolTip((Control) this.cbHidePath, StringTable.SHOW_PATH);
    }
    else
    {
      this._dialogDirector.ShowPath();
      this.ttGeneralTooltip.SetToolTip((Control) this.cbHidePath, StringTable.HIDE_PATH);
    }
  }

  private void _distanceRadioButton_Click(object sender, EventArgs e)
  {
    this._dialogDirector.SetBetween2LocationsMode();
  }

  private void _distanceTxNumericUpDown_ValueChanged(object sender, EventArgs e)
  {
    this._dialogDirector.SetPercentageOrDistance();
  }

  internal static TxRoboticSeamLocationOperation GetLocationAtPosition(
    TxRoboticSeamLocationOperation referenceLocation,
    LocationPosition position)
  {
    if (TxRoboticSeamLocationOperation.op_Equality(referenceLocation, (ITxObject) null))
      return (TxRoboticSeamLocationOperation) null;
    TxObjectList siblingLocatins = CCUiInsertLocationDlg.GetSiblingLocatins((ITxLocationOperation) referenceLocation);
    int locationIndexAtPosition = CCUiInsertLocationDlg.GetLocationIndexAtPosition(siblingLocatins, (ITxLocationOperation) referenceLocation, position);
    return locationIndexAtPosition < 0 || locationIndexAtPosition > ((Collection<ITxObject>) siblingLocatins).Count - 1 ? (TxRoboticSeamLocationOperation) null : ((Collection<ITxObject>) siblingLocatins)[locationIndexAtPosition] as TxRoboticSeamLocationOperation;
  }

  private static int GetLocationIndexAtPosition(
    TxObjectList referenceLocationSiblings,
    ITxLocationOperation referenceLocation,
    LocationPosition position)
  {
    int num = ((Collection<ITxObject>) referenceLocationSiblings).IndexOf((ITxObject) referenceLocation);
    int locationIndexAtPosition;
    switch (position)
    {
      case LocationPosition.First:
        locationIndexAtPosition = 0;
        break;
      case LocationPosition.Previous:
        locationIndexAtPosition = num - 1;
        break;
      case LocationPosition.Next:
        locationIndexAtPosition = num + 1;
        break;
      case LocationPosition.Last:
        locationIndexAtPosition = ((Collection<ITxObject>) referenceLocationSiblings).Count - 1;
        break;
      default:
        locationIndexAtPosition = -1;
        break;
    }
    return locationIndexAtPosition;
  }

  private static TxObjectList GetSiblingLocatins(ITxLocationOperation location)
  {
    return location == null ? new TxObjectList() : ((ITxObject) location).Collection.GetAllDescendants((ITxTypeFilter) new TxTypeFilter(typeof (ITxLocationOperation)));
  }

  private static bool CanSetFirstLocationInSeam(TxRoboticSeamLocationOperation location)
  {
    return !TxRoboticSeamLocationOperation.op_Equality(location, (ITxObject) null) && ((Collection<ITxObject>) location.Collection.GetAllDescendants((ITxTypeFilter) new TxTypeFilter(typeof (ITxLocationOperation)))).IndexOf((ITxObject) location) != 0;
  }

  private static bool CanSetLastLocationInSeam(TxRoboticSeamLocationOperation location)
  {
    if (TxRoboticSeamLocationOperation.op_Equality(location, (ITxObject) null))
      return false;
    TxObjectList allDescendants = location.Collection.GetAllDescendants((ITxTypeFilter) new TxTypeFilter(typeof (ITxLocationOperation)));
    return ((Collection<ITxObject>) allDescendants).IndexOf((ITxObject) location) != ((Collection<ITxObject>) allDescendants).Count - 1;
  }

  private void SetLocationNavigationButtonsState()
  {
    ((Control) this.btnJumpToFirst).Enabled = CCUiInsertLocationDlg.CanSetFirstLocationInSeam(this._relativeLocationObjEditBoxCtrl.Object as TxRoboticSeamLocationOperation);
    ((Control) this.btnJumpToPrevious).Enabled = ((Control) this.btnJumpToFirst).Enabled;
    ((Control) this.btnJumpToLast).Enabled = CCUiInsertLocationDlg.CanSetLastLocationInSeam(this._relativeLocationObjEditBoxCtrl.Object as TxRoboticSeamLocationOperation);
    ((Control) this.btnJumpToNext).Enabled = ((Control) this.btnJumpToLast).Enabled;
  }

  private void btnJumpToFirst_Click(object sender, EventArgs e)
  {
    this.JumpToLocation(LocationPosition.First);
  }

  private void btnJumpToPrevious_Click(object sender, EventArgs e)
  {
    this.JumpToLocation(LocationPosition.Previous);
  }

  private void btnJumpToNext_Click(object sender, EventArgs e)
  {
    this.JumpToLocation(LocationPosition.Next);
  }

  private void btnJumpToLast_Click(object sender, EventArgs e)
  {
    this.JumpToLocation(LocationPosition.Last);
  }

  private void JumpToLocation(LocationPosition position)
  {
    this.SetLocationAtPosition(position);
    this.SetLocationNavigationButtonsState();
    if (this._pickOnCurveRadioButton.Checked)
      return;
    this._relativeLocationObjEditBoxCtrl.Focus();
  }

  private void SetLocationAtPosition(LocationPosition position)
  {
    TxRoboticSeamLocationOperation locationAtPosition = CCUiInsertLocationDlg.GetLocationAtPosition(this._relativeLocationObjEditBoxCtrl.Object as TxRoboticSeamLocationOperation, position);
    if (TxRoboticSeamLocationOperation.op_Equality(locationAtPosition, (ITxObject) null))
      return;
    string errorMessage = string.Empty;
    if (!this._dialogDirector.SeamLocationValidator.IsValidObject((ITxObject) locationAtPosition, out errorMessage))
      return;
    this._relativeLocationObjEditBoxCtrl.Object = (ITxObject) locationAtPosition;
    this._dialogDirector.TypedValid();
  }

  private void _useRefLocationPositionCheckBox_Checked(object sender, EventArgs e)
  {
    this._dialogDirector.SetPercentageOrDistance();
  }

  protected virtual void Dispose(bool disposing)
  {
    if (disposing && this.components != null)
      this.components.Dispose();
    base.Dispose(disposing);
  }

  private void InitializeComponent()
  {
    this.components = (IContainer) new Container();
    ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (CCUiInsertLocationDlg));
    this._okButton = new Button();
    this._cancelButton = new Button();
    this.label5 = new Label();
    this.label1 = new Label();
    this._afterRadioButton = new RadioButton();
    this.label3 = new Label();
    this._beforeRadioButton = new RadioButton();
    this.label4 = new Label();
    this._relativeLocationObjEditBoxCtrl = new TxObjEditBoxCtrl();
    this._translate3DVectorCtrl1 = new Tx3DVectorCtrl();
    this.groupBox1 = new GroupBox();
    this._copyParametersComboBoxCtrl = new ComboBox();
    this.label2 = new Label();
    this.btnJumpToNext = new TxButton();
    this.ilButtonsImages = new ImageList(this.components);
    this.btnJumpToPrevious = new TxButton();
    this.rbAutomatic = new RadioButton();
    this.btnJumpToLast = new TxButton();
    this.btnJumpToFirst = new TxButton();
    this.groupBox2 = new GroupBox();
    this._useRefLocationPositionCheckBox = new CheckBox();
    this._precentageTxNumericEditBoxCtrl = new TxNumericEditBoxCtrl();
    this.label7 = new Label();
    this._distanceTxNumericUpDown = new TxNumericEditBoxCtrl();
    this._distanceLabel = new Label();
    this._distanceRadioButton = new RadioButton();
    this._pickOnCurveRadioButton = new RadioButton();
    this._percentageRadioButton = new RadioButton();
    this.cbHidePath = new TxCheckBox();
    this.ttGeneralTooltip = new ToolTip(this.components);
    this._applyButton = new Button();
    this.groupBox1.SuspendLayout();
    this.groupBox2.SuspendLayout();
    ((Control) this).SuspendLayout();
    componentResourceManager.ApplyResources((object) this._okButton, "_okButton");
    this._okButton.Name = "_okButton";
    this._okButton.UseVisualStyleBackColor = true;
    this._okButton.Click += new EventHandler(this._okButton_Click);
    componentResourceManager.ApplyResources((object) this._cancelButton, "_cancelButton");
    this._cancelButton.Name = "_cancelButton";
    this._cancelButton.UseVisualStyleBackColor = true;
    this._cancelButton.Click += new EventHandler(this._cancelButton_Click);
    componentResourceManager.ApplyResources((object) this.label5, "label5");
    this.label5.Name = "label5";
    componentResourceManager.ApplyResources((object) this.label1, "label1");
    this.label1.Name = "label1";
    componentResourceManager.ApplyResources((object) this._afterRadioButton, "_afterRadioButton");
    this._afterRadioButton.Name = "_afterRadioButton";
    this._afterRadioButton.TabStop = true;
    this._afterRadioButton.UseVisualStyleBackColor = true;
    this._afterRadioButton.Click += new EventHandler(this._afterRadioButton_Click);
    componentResourceManager.ApplyResources((object) this.label3, "label3");
    this.label3.Name = "label3";
    componentResourceManager.ApplyResources((object) this._beforeRadioButton, "_beforeRadioButton");
    this._beforeRadioButton.Name = "_beforeRadioButton";
    this._beforeRadioButton.TabStop = true;
    this._beforeRadioButton.UseVisualStyleBackColor = true;
    this._beforeRadioButton.Click += new EventHandler(this._beforeRadioButton_Click);
    componentResourceManager.ApplyResources((object) this.label4, "label4");
    this.label4.Name = "label4";
    componentResourceManager.ApplyResources((object) this._relativeLocationObjEditBoxCtrl, "_relativeLocationObjEditBoxCtrl");
    this._relativeLocationObjEditBoxCtrl.KeepFaceEmphasizedWhenControlIsNotFocused = true;
    this._relativeLocationObjEditBoxCtrl.ListenToPick = false;
    ((Control) this._relativeLocationObjEditBoxCtrl).Name = "_relativeLocationObjEditBoxCtrl";
    this._relativeLocationObjEditBoxCtrl.Object = (ITxObject) null;
    this._relativeLocationObjEditBoxCtrl.PickAndClear = false;
    this._relativeLocationObjEditBoxCtrl.PickLevel = (TxPickLevel) 1;
    this._relativeLocationObjEditBoxCtrl.PickOnly = false;
    this._relativeLocationObjEditBoxCtrl.ReadOnly = false;
    this._relativeLocationObjEditBoxCtrl.ValidatorType = (TxValidatorType) 1;
    this._relativeLocationObjEditBoxCtrl.TypeInvalid += new EventHandler(this._relativeLocationObjEditBoxCtrl_TypeInvalid);
    this._relativeLocationObjEditBoxCtrl.TypeValid += new EventHandler(this._relativeLocationObjEditBoxCtrl_TypeValid);
    this._relativeLocationObjEditBoxCtrl.Picked += new TxObjEditBoxCtrl_PickedEventHandler(this._relativeLocationObjEditBoxCtrl_Picked);
    ((Control) this._relativeLocationObjEditBoxCtrl).Enter += new EventHandler(this._relativeLocationObjEditBoxCtrl_Enter);
    componentResourceManager.ApplyResources((object) this._translate3DVectorCtrl1, "_translate3DVectorCtrl1");
    this._translate3DVectorCtrl1.ListenToPick = false;
    this._translate3DVectorCtrl1.LowerBound = -1000000.0;
    ((Control) this._translate3DVectorCtrl1).Name = "_translate3DVectorCtrl1";
    this._translate3DVectorCtrl1.ReadOnly = true;
    this._translate3DVectorCtrl1.StepSize = 0.0;
    ((Control) this._translate3DVectorCtrl1).TabStop = false;
    this._translate3DVectorCtrl1.UpperBound = 1000000.0;
    this._translate3DVectorCtrl1.ValueType = (TxNumericEditValueType) 0;
    this._translate3DVectorCtrl1.X = 0.0;
    this._translate3DVectorCtrl1.Y = 0.0;
    this._translate3DVectorCtrl1.Z = 0.0;
    componentResourceManager.ApplyResources((object) this.groupBox1, "groupBox1");
    this.groupBox1.Controls.Add((Control) this._copyParametersComboBoxCtrl);
    this.groupBox1.Controls.Add((Control) this.label2);
    this.groupBox1.Controls.Add((Control) this.btnJumpToNext);
    this.groupBox1.Controls.Add((Control) this.btnJumpToPrevious);
    this.groupBox1.Controls.Add((Control) this.rbAutomatic);
    this.groupBox1.Controls.Add((Control) this.btnJumpToLast);
    this.groupBox1.Controls.Add((Control) this.btnJumpToFirst);
    this.groupBox1.Controls.Add((Control) this.label3);
    this.groupBox1.Controls.Add((Control) this._beforeRadioButton);
    this.groupBox1.Controls.Add((Control) this.label4);
    this.groupBox1.Controls.Add((Control) this._relativeLocationObjEditBoxCtrl);
    this.groupBox1.Controls.Add((Control) this._afterRadioButton);
    this.groupBox1.Name = "groupBox1";
    this.groupBox1.TabStop = false;
    componentResourceManager.ApplyResources((object) this._copyParametersComboBoxCtrl, "_copyParametersComboBoxCtrl");
    this._copyParametersComboBoxCtrl.FormattingEnabled = true;
    this._copyParametersComboBoxCtrl.Name = "_copyParametersComboBoxCtrl";
    componentResourceManager.ApplyResources((object) this.label2, "label2");
    this.label2.Name = "label2";
    componentResourceManager.ApplyResources((object) this.btnJumpToNext, "btnJumpToNext");
    ((ButtonBase) this.btnJumpToNext).ImageList = this.ilButtonsImages;
    ((Control) this.btnJumpToNext).Name = "btnJumpToNext";
    this.ttGeneralTooltip.SetToolTip((Control) this.btnJumpToNext, componentResourceManager.GetString("btnJumpToNext.ToolTip"));
    ((ButtonBase) this.btnJumpToNext).UseVisualStyleBackColor = true;
    ((Control) this.btnJumpToNext).Click += new EventHandler(this.btnJumpToNext_Click);
    this.ilButtonsImages.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("ilButtonsImages.ImageStream");
    this.ilButtonsImages.TransparentColor = Color.Silver;
    this.ilButtonsImages.Images.SetKeyName(0, "blankPath.bmp");
    this.ilButtonsImages.Images.SetKeyName(1, "First.png");
    this.ilButtonsImages.Images.SetKeyName(2, "Prev.png");
    this.ilButtonsImages.Images.SetKeyName(3, "Next.png");
    this.ilButtonsImages.Images.SetKeyName(4, "Last.png");
    componentResourceManager.ApplyResources((object) this.btnJumpToPrevious, "btnJumpToPrevious");
    ((ButtonBase) this.btnJumpToPrevious).ImageList = this.ilButtonsImages;
    ((Control) this.btnJumpToPrevious).Name = "btnJumpToPrevious";
    this.ttGeneralTooltip.SetToolTip((Control) this.btnJumpToPrevious, componentResourceManager.GetString("btnJumpToPrevious.ToolTip"));
    ((ButtonBase) this.btnJumpToPrevious).UseVisualStyleBackColor = true;
    ((Control) this.btnJumpToPrevious).Click += new EventHandler(this.btnJumpToPrevious_Click);
    componentResourceManager.ApplyResources((object) this.rbAutomatic, "rbAutomatic");
    this.rbAutomatic.Name = "rbAutomatic";
    this.rbAutomatic.TabStop = true;
    this.rbAutomatic.UseVisualStyleBackColor = true;
    this.rbAutomatic.Click += new EventHandler(this.rbAutomatic_Click);
    componentResourceManager.ApplyResources((object) this.btnJumpToLast, "btnJumpToLast");
    ((ButtonBase) this.btnJumpToLast).ImageList = this.ilButtonsImages;
    ((Control) this.btnJumpToLast).Name = "btnJumpToLast";
    this.ttGeneralTooltip.SetToolTip((Control) this.btnJumpToLast, componentResourceManager.GetString("btnJumpToLast.ToolTip"));
    ((ButtonBase) this.btnJumpToLast).UseVisualStyleBackColor = true;
    ((Control) this.btnJumpToLast).Click += new EventHandler(this.btnJumpToLast_Click);
    componentResourceManager.ApplyResources((object) this.btnJumpToFirst, "btnJumpToFirst");
    ((ButtonBase) this.btnJumpToFirst).ImageList = this.ilButtonsImages;
    ((Control) this.btnJumpToFirst).Name = "btnJumpToFirst";
    this.ttGeneralTooltip.SetToolTip((Control) this.btnJumpToFirst, componentResourceManager.GetString("btnJumpToFirst.ToolTip"));
    ((ButtonBase) this.btnJumpToFirst).UseVisualStyleBackColor = true;
    ((Control) this.btnJumpToFirst).Click += new EventHandler(this.btnJumpToFirst_Click);
    componentResourceManager.ApplyResources((object) this.groupBox2, "groupBox2");
    this.groupBox2.Controls.Add((Control) this._useRefLocationPositionCheckBox);
    this.groupBox2.Controls.Add((Control) this._precentageTxNumericEditBoxCtrl);
    this.groupBox2.Controls.Add((Control) this.label7);
    this.groupBox2.Controls.Add((Control) this._distanceTxNumericUpDown);
    this.groupBox2.Controls.Add((Control) this._distanceLabel);
    this.groupBox2.Controls.Add((Control) this._distanceRadioButton);
    this.groupBox2.Controls.Add((Control) this._pickOnCurveRadioButton);
    this.groupBox2.Controls.Add((Control) this._percentageRadioButton);
    this.groupBox2.Controls.Add((Control) this.label5);
    this.groupBox2.Controls.Add((Control) this.label1);
    this.groupBox2.Controls.Add((Control) this._translate3DVectorCtrl1);
    this.groupBox2.Name = "groupBox2";
    this.groupBox2.TabStop = false;
    componentResourceManager.ApplyResources((object) this._useRefLocationPositionCheckBox, "_useRefLocationPositionCheckBox");
    this._useRefLocationPositionCheckBox.Name = "_useRefLocationPositionCheckBox";
    this._useRefLocationPositionCheckBox.UseVisualStyleBackColor = true;
    this._useRefLocationPositionCheckBox.CheckedChanged += new EventHandler(this._useRefLocationPositionCheckBox_Checked);
    componentResourceManager.ApplyResources((object) this._precentageTxNumericEditBoxCtrl, "_precentageTxNumericEditBoxCtrl");
    this._precentageTxNumericEditBoxCtrl.BorderStyle = BorderStyle.Fixed3D;
    this._precentageTxNumericEditBoxCtrl.LowerBound = -10000000.0;
    ((Control) this._precentageTxNumericEditBoxCtrl).Name = "_precentageTxNumericEditBoxCtrl";
    this._precentageTxNumericEditBoxCtrl.ReadOnly = false;
    this._precentageTxNumericEditBoxCtrl.StepSize = 1.0;
    this._precentageTxNumericEditBoxCtrl.TextAlign = HorizontalAlignment.Left;
    this._precentageTxNumericEditBoxCtrl.ThousandsSeparator = false;
    this._precentageTxNumericEditBoxCtrl.UpperBound = 10000000.0;
    this._precentageTxNumericEditBoxCtrl.UseDecimalPlacesFromOption = true;
    this._precentageTxNumericEditBoxCtrl.Value = 50.0;
    this._precentageTxNumericEditBoxCtrl.ValueType = (TxNumericEditValueType) 0;
    this._precentageTxNumericEditBoxCtrl.ValueChanged += new EventHandler(this._precentageTxNumericEditBoxCtrl_ValueChanged);
    componentResourceManager.ApplyResources((object) this.label7, "label7");
    this.label7.Name = "label7";
    componentResourceManager.ApplyResources((object) this._distanceTxNumericUpDown, "_distanceTxNumericUpDown");
    this._distanceTxNumericUpDown.BorderStyle = BorderStyle.Fixed3D;
    this._distanceTxNumericUpDown.LowerBound = -10000000.0;
    ((Control) this._distanceTxNumericUpDown).Name = "_distanceTxNumericUpDown";
    this._distanceTxNumericUpDown.ReadOnly = false;
    this._distanceTxNumericUpDown.StepSize = 1.0;
    this._distanceTxNumericUpDown.TextAlign = HorizontalAlignment.Left;
    this._distanceTxNumericUpDown.ThousandsSeparator = false;
    this._distanceTxNumericUpDown.UpperBound = 10000000.0;
    this._distanceTxNumericUpDown.UseDecimalPlacesFromOption = true;
    this._distanceTxNumericUpDown.Value = 5.0;
    this._distanceTxNumericUpDown.ValueType = (TxNumericEditValueType) 0;
    this._distanceTxNumericUpDown.ValueChanged += new EventHandler(this._distanceTxNumericUpDown_ValueChanged);
    componentResourceManager.ApplyResources((object) this._distanceLabel, "_distanceLabel");
    this._distanceLabel.Name = "_distanceLabel";
    componentResourceManager.ApplyResources((object) this._distanceRadioButton, "_distanceRadioButton");
    this._distanceRadioButton.Name = "_distanceRadioButton";
    this._distanceRadioButton.TabStop = true;
    this._distanceRadioButton.UseVisualStyleBackColor = true;
    this._distanceRadioButton.Click += new EventHandler(this._distanceRadioButton_Click);
    componentResourceManager.ApplyResources((object) this._pickOnCurveRadioButton, "_pickOnCurveRadioButton");
    this._pickOnCurveRadioButton.Name = "_pickOnCurveRadioButton";
    this._pickOnCurveRadioButton.TabStop = true;
    this._pickOnCurveRadioButton.UseVisualStyleBackColor = true;
    this._pickOnCurveRadioButton.Click += new EventHandler(this._pickOnCurveRadioButton_Click);
    componentResourceManager.ApplyResources((object) this._percentageRadioButton, "_percentageRadioButton");
    this._percentageRadioButton.Name = "_percentageRadioButton";
    this._percentageRadioButton.TabStop = true;
    this._percentageRadioButton.UseVisualStyleBackColor = true;
    this._percentageRadioButton.Click += new EventHandler(this._percentageRadioButton_Click);
    componentResourceManager.ApplyResources((object) this.cbHidePath, "cbHidePath");
    ((ButtonBase) this.cbHidePath).ImageList = this.ilButtonsImages;
    ((Control) this.cbHidePath).Name = "cbHidePath";
    this.ttGeneralTooltip.SetToolTip((Control) this.cbHidePath, componentResourceManager.GetString("cbHidePath.ToolTip"));
    ((ButtonBase) this.cbHidePath).UseVisualStyleBackColor = true;
    ((CheckBox) this.cbHidePath).CheckedChanged += new EventHandler(this.cbHidePath_CheckedChanged);
    componentResourceManager.ApplyResources((object) this._applyButton, "_applyButton");
    this._applyButton.Name = "_applyButton";
    this._applyButton.UseVisualStyleBackColor = true;
    this._applyButton.MouseClick += new MouseEventHandler(this._applyButton_Click);
    componentResourceManager.ApplyResources((object) this, "$this");
    ((ContainerControl) this).AutoScaleMode = AutoScaleMode.Font;
    ((Control) this).Controls.Add((Control) this._applyButton);
    ((Control) this).Controls.Add((Control) this.cbHidePath);
    ((Control) this).Controls.Add((Control) this._okButton);
    ((Control) this).Controls.Add((Control) this._cancelButton);
    ((Control) this).Controls.Add((Control) this.groupBox1);
    ((Control) this).Controls.Add((Control) this.groupBox2);
    ((Form) this).MaximizeBox = false;
    ((Form) this).MinimizeBox = false;
    ((Control) this).Name = nameof (CCUiInsertLocationDlg);
    ((Form) this).FormClosing += new FormClosingEventHandler(this.CCUiInsertLocationDlg_FormClosing);
    ((Form) this).Load += new EventHandler(this.CCUiInsertLocationDlg_Load);
    this.groupBox1.ResumeLayout(false);
    this.groupBox1.PerformLayout();
    this.groupBox2.ResumeLayout(false);
    this.groupBox2.PerformLayout();
    ((Control) this).ResumeLayout(false);
  }
}
